﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ERPEF.Model
{
    //销售订单从表
    public class sal_orders
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int orders_id { get; set; } //序号
        public string orders_product_name { get; set; } //产品名称
        public string orders_unit { get; set; } //单位
        public Decimal orders_unit_price { get; set; } //单价
        public int orders_num { get; set; } //数量
        public Decimal orders_subtotal { get; set; } //小计
        public bool IsDeleted { get; set; } = false; // 逻辑删除字段

        public int sal_sales_ordersso_id { get; set; } //外键
    }
}
